export const PAGE_CODE = 'dcs-sales-saleConfirmationKd';
import {PAGE} from '../constants';
import {packingWay, saleOrderTransportType} from '../Enum';
export const formatExportPdfUrl = (id, code) => `/sales/print/report.html?id=${id}&name=SaleConfirmationForKD&Prefix=${code}title=销售确认书管理`;
//设置管理员权限
export const PERMISSION = {
    add: 'add',
    update: 'update',
    submit: 'submit',
    approve: 'approve',
    abandon: 'abandon',
    export: 'export',
    print: 'print',
    printPdf: 'printPdf'
};
//重置常量
export const DEFAULT_QUERY_OPTION = {
    code: '',
    dealerId: '',
    brandId: '',
    salesOrderCode: '',
    saleProformaInvoiceCode: '',
    tradeMethodId: '',
    marketDepartmentId: '',
    country: '',
    transportType: undefined,
    status: [],
    batchNumber: '',
    productCode: '',
    createTime: [],
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
    sortField: 'createTime',
    isDesc: true,
};

export const packing = packingWay.pick([
    packingWay.木托,
    packingWay.铁箱,
    packingWay.纸箱
]);
export const saleOrderTransport = saleOrderTransportType.pick([
    saleOrderTransportType.Container,
    saleOrderTransportType.Railway,
    saleOrderTransportType['By Air'],
    saleOrderTransportType['By Sea'],
    saleOrderTransportType.Others,
]);
